package com.wakyde.controller;

import com.wakyde.entity.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "测试类接口")
public class HelloController {

    @PostMapping("/hello")
    @ApiOperation("你好")
    public String hello(){
        return "hello world";
    }

    @PostMapping("/user")
    @ApiOperation("用户访问")
    public User user(){
        return new User();
    }
}
